<template>
    <div>
        <van-nav-bar title="充值成功" left-text="返回" left-arrow @click-left="onClickLeft" />
    </div>
    <div style="text-align: center;margin-top: 50px;">
        <van-icon name="passed" size="36px" color="green"/>
        <div>充值成功</div>
    </div>
    <div style="text-align: center;margin-top: 50px;">
        <van-button type="success" round @click="forHMineIndex()">
            <van-swipe
                vertical
                class="notice-swipe"
                :autoplay="2000"
                :touchable="false"
                :show-indicators="false"
            >
                <van-swipe-item>充值成功</van-swipe-item>
                <van-swipe-item>返回个人中心</van-swipe-item>
            </van-swipe>
        </van-button>
    </div>
</template>
<script setup>
import router from '@/router';

 
    const onClickLeft = () => history.back();
    function forHMineIndex(){
      router.push('/mine/index')
}
</script>
<style>
.notice-swipe {
    height: 40px;
    line-height: 40px;
  }
</style>